import request from "@/utils/request";

export const statShopMonthlyOrder = (query: any) => {
  return request({
    url: '/retail/stat/shop',
    method: 'post',
    data: query
  });
};

export const statMerMonthlyOrder = (query: any) => {
  return request({
    url: '/retail/stat/merchant',
    method: 'post',
    data: query
  });
};
export const statChannelMonthlyOrder = (query: any) => {
  return request({
    url: '/retail/stat/channel',
    method: 'post',
    data: query
  });
};

export const statAccountBase = () => {
  return request({
    url: '/retail/accountStat/base',
    method: 'get'
  });
}

export const statCashierBase = (data: any) => {
  return request({
    url: '/retail/cashierStat/base',
    method: 'get',
    params: data
  });
}

export const cashierAvailableList = (data: any) => {
  return request({
    url: '/retail/cashierStat/detail',
    method: 'get',
    params: data
  });
}
